export interface Locale {
  getName(): string
}

class SimpleLocale implements Locale {
  private name: string

  constructor (name: string) {
    this.name = name
  }

  getName (): string {
    return this.name
  }
}

export const Locales = {
  forName (name: string): Locale {
    return new SimpleLocale(name)
  }
}
